package com.swyc.osschat.Common.Exception;

/**
 * @author cydu
 */
public class ChatException extends RuntimeException {
    private String msg;

    private String code = "500";


    public ChatException(String msg) {
        super(msg);
        this.msg = msg;
    }

    public ChatException(String msg, String code) {
        super(msg);
        this.msg = msg;
        this.code=code;
    }

    public ChatException(String msg, Throwable e) {
        super(msg, e);
        this.msg = msg;
    }

    public ChatException(String msg, String code, Throwable e) {
        super(msg, e);
        this.msg = msg;
        this.code=code;
    }

    public String getMsg() {
        return msg;
    }

    public String getCode() {
        return code;
    }

}